pygrub: fix extlinux parsing
authorRoger Pau Monne <roger.pau@entel.upc.edu>
Tue, 3 Jan 2012 12:11:46 +0000 (13:11 +0100)
committerRoger Pau Monne <roger.pau@entel.upc.edu>
Tue, 3 Jan 2012 12:11:46 +0000 (13:11 +0100)
commitbde83b1e10cfb6a9dbea8dee1bd6df929740cb70
tree538e325e15925be463953ffca37bdfec536fdf78
parenta5e66ebdebfd2dfa928afb44eeb335cf5e9f178e
pygrub: fix extlinux parsing

pygrub was unable to parse extlinux config files correctly, exactly
the ones like:

LABEL grsec
  KERNEL vmlinuz-3.0.10-grsec
  APPEND initrd=initramfs-3.0.10-grsec
root=UUID=cfd4a7b4-8c40-4025-b877-8205f1c622ee
modules=sd-mod,usb-storage,ext4 xen quiet

This patch fixes it, adding a new case when parsing the "append" line,
that searches for the initrd image.

Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Acked-by: Ian Campbell <ian.campbell.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/pygrub/examples/alpine-linux-2.3.2.extlinux [new file with mode: 0644]
tools/pygrub/src/ExtLinuxConf.py